package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_channel")
public class ChannelBean {
    @TableId(value = "pk_channelID",type = IdType.AUTO)
    private Integer id;
    @TableField("c_title")
    private String title;
    @TableField("c_des")
    private String des;
    @TableField(exist = false)
    private Integer sumMainPost;

    public ChannelBean() {
    }

    public ChannelBean(String title, String des) {
        this.title = title;
        this.des = des;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Integer getSumMainPost() {
        return sumMainPost;
    }

    public void setSumMainPost(Integer sumMainPost) {
        this.sumMainPost = sumMainPost;
    }

    @Override
    public String toString() {
        return "\nChannelBean{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", des='" + des + '\'' +
                ", sumMainPost=" + sumMainPost +
                '}';
    }
}
